package com.kanshu.ksgb.fastread.doudou.module.personal.bean;

import android.os.Parcel;
import android.os.Parcelable;

public class BindPhoneInfo implements Parcelable {
    public String user_id;       //用户ID
    public int rmb;         //绑定赠送RMB （分）
    public String user_name;//账号
    public String nickname;//昵称
    public String phone;//手机号码

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.user_id);
        dest.writeInt(this.rmb);
        dest.writeString(this.user_name);
        dest.writeString(this.nickname);
        dest.writeString(this.phone);
    }

    public BindPhoneInfo() {
    }

    protected BindPhoneInfo(Parcel in) {
        this.user_id = in.readString();
        this.rmb = in.readInt();
        this.user_name = in.readString();
        this.nickname = in.readString();
        this.phone = in.readString();
    }

    public static final Parcelable.Creator<BindPhoneInfo> CREATOR = new Parcelable.Creator<BindPhoneInfo>() {
        @Override
        public BindPhoneInfo createFromParcel(Parcel source) {
            return new BindPhoneInfo(source);
        }

        @Override
        public BindPhoneInfo[] newArray(int size) {
            return new BindPhoneInfo[size];
        }
    };
}
